<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id}">
    <div class="form-group" style="color: red;">
        <label for="c-level_order" class="control-label col-xs-12 col-sm-2">下级用户单量:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-level_order" readonly="readonly" class="form-control" name="row[level_order]" type="text" value="{$level_order|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-beans" class="control-label col-xs-12 col-sm-2">上级用户id:</label>
        <div class="col-xs-12 col-sm-8">
            {$puser}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">上级用户:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pid" data-rule="required" data-field="mobile" data-source="user/user/index" class="form-control selectpage" name="row[pid]" type="text" value="{$row.pid|htmlentities}" data-search-field="mobile">
        </div>
    </div>
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">真实姓名:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username" data-rule="" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-level" class="control-label col-xs-12 col-sm-2">{:__('Level')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-level" data-rule="required" class="form-control" name="row[level]" type="number" value="{$row.level}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            {$row.nickname|htmlentities}
        </div>
    </div>
    <div class="form-group">
        <label for="c-beans" class="control-label col-xs-12 col-sm-2">吃豆:</label>
        <div class="col-xs-12 col-sm-8">
            {$row.beans}
        </div>
    </div>
    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
        <div class="col-xs-12 col-sm-8">
            <ul class="row list-inline faupload-preview" id="p-avatar"><img src="{$row.avatar}"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            <label for="row[status]-normal"><input id="row[status]-normal" name="row[status]" type="radio" value="normal" {if $row.status=="normal"}checked{/if} /> 正常</label> 
            <label for="row[status]-cancel"><input id="row[status]-cancel" name="row[status]" type="radio" value="cancel" {if $row.status=="cancel"}checked{/if} /> 注销</label> 
            <label for="row[status]-hidden"><input id="row[status]-hidden" name="row[status]" type="radio" value="hidden" {if $row.status=="hidden"}checked{/if} /> 拉黑</label> 
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
